﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.BaseSplit
{


    public  class SplitAreaSource
    {
        private static string[] source = new string[] { "Default", "Default1", "Default2" };
        private static readonly object cLock = new object();
        private static readonly Random ran = new Random();

        public static string GetAreaSource()
        {
            lock (cLock)
            {
                int index = ran.Next(3);
                var outPut = source[index];
                return outPut;
            }
        }

        public static string[] GetAllSource()
            => source;
    }
}
